public class JGobangBoard {
    public JGobangBoard(){
        refreshBoard();
    }

    private void refreshBoard() {
        JPrint("  ");
        for (int i = 1; i <= ConstantsKt.COLS ; i++) {
            JPrint(i + " ");
        }
        JPrintln("");
        for (int i = 0; i < ConstantsKt.ROWS; i++) {
            JPrint((i+1) + " ");
            for (int j = 0; j < ConstantsKt.COLS; j++) {
                JPrint(BoardData.INSTANCE.getBoards()[i][j] + " ");
            }
            JPrintln("");
        }
    }

    private void JPrint(String str){
        System.out.print(str);
    }
    private void JPrintln(String str){
        System.out.println(str);
    }
}
